home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
yerk
/
mps231ss.hqx
/
Mops source
/
Toolbox classes
/
Alert
next >
Wrap
Text File
|
1993-02-07
|
591b
|
36 lines
\ Alert support.
type{ STOPALERT NOTEALERT CAUTIONALERT }
:class ALERT super{ x-array }
int RESID
int TYPE
:m SHOW:
word0 int: resID 0 ( procID ) get: type
SELECT{
StopAlert IS{ call StopAlert }END
NoteAlert IS{ call NoteAlert }END
CautionAlert IS{ call CautionAlert }END
DEFAULT{ call Alert
}SELECT
i->l dup 0>
IF 1- exec: super
ELSE drop
THEN ;m
:m INIT: \ ( cfa1 ... cfaN N resID -- )
put: resID put: super ;m
:m SETTYPE:
put: type ;m
:m DISP: \ ( resID type -- )
put: type put: resID show: self ;m
:m CLASSINIT:
16 put: type ;m
;class